/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cgd;

/**
 *
 * @author Rodrigo
 */
public abstract class DAOFactory {
    public static final int TIPO_HIBERNATE = 0;
    public static final int TIPO_JPA = 2;
    public static final int TIPO_JDBC = 3;
    public static int defaultFactory = DAOFactory.TIPO_HIBERNATE;  
    
    public static DAOFactory getDAOFactory(int tipo) {
        switch(tipo){
            case 0: return new HibernateDAOFactory();
                
            default: return new HibernateDAOFactory();
        }
    }
    
    public abstract DAO getDAO(Class classe);
}
